package com.example.apigeneratorplusissues.controller;

import com.example.apigeneratorplusissues.model.ResponseWrap;
import com.example.apigeneratorplusissues.model.response.JsonSerializerResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/json/serializer")
public class JsonSerializerController {

    @GetMapping("/index")
    public ResponseWrap<JsonSerializerResponse> index(){
        JsonSerializerResponse response = new JsonSerializerResponse();
        response.setImageUrl("/th?id=OSK.wT-MbJ6EIE2AmjALQlN9XjAeDCj0d0I83bb3giUGQ5I&r=0&o=6&pid=13.1");
        return ResponseWrap.<JsonSerializerResponse>builder().data(response).build();
    }

}
